package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.UserExternalInfo;
import com.ecoolex.chinadutyfree.retailer.entity.UserExternalInfoExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserExternalInfoMapper {
    long countByExample(UserExternalInfoExample example);

    int deleteByExample(UserExternalInfoExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(UserExternalInfo record);

    int insertSelective(@Param("record") UserExternalInfo record, @Param("selective") UserExternalInfo.Column ... selective);

    UserExternalInfo selectOneByExample(UserExternalInfoExample example);

    List<UserExternalInfo> selectByExample(UserExternalInfoExample example);

    UserExternalInfo selectByPrimaryKey(Integer userId);

    UserExternalInfo selectByPrimaryKeyWithLogicalDelete(@Param("userId") Integer userId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserExternalInfo record, @Param("example") UserExternalInfoExample example, @Param("selective") UserExternalInfo.Column ... selective);

    int updateByExample(@Param("record") UserExternalInfo record, @Param("example") UserExternalInfoExample example);

    int updateByPrimaryKeySelective(@Param("record") UserExternalInfo record, @Param("selective") UserExternalInfo.Column ... selective);

    int updateByPrimaryKey(UserExternalInfo record);

    int batchInsert(@Param("list") List<UserExternalInfo> list);

    int batchInsertSelective(@Param("list") List<UserExternalInfo> list, @Param("selective") UserExternalInfo.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserExternalInfoExample example);

    int logicalDeleteByPrimaryKey(Integer userId);
}